<?php

use Faker\Generator as Faker;

$factory->define(App\Models\EduTopic::class, function (Faker $faker) {
    return [
        'title'=>$faker->sentence,
        'content'=>$faker->text(50),
        'category_id'=>array_random(range(1,3)),
        'user_id'=>mt_rand(1,8),
    ];
});
